FROM docker.bkce7.bktencent.com/alipex-id/public-docker/python:3.11
ENV PYTHONUNBUFFERED 1
WORKDIR /python_project/
ADD requirements.txt requirements.txt
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
        pip install --upgrade pip  && \
        pip install --no-cache-dir -r requirements.txt  && \
        pip cache purge
        
ADD . .
RUN chmod +x /python_project/start.sh
ENTRYPOINT ["/python_project/start.sh"]
